package thread.pipe_stream;

import java.io.PipedInputStream;
import java.io.PipedOutputStream;

/**
 * Created by mHandler on 2018/6/2 0002.
 * Description:
 */
public class ReadThread extends Thread {
    private ReadData writeData;
    private PipedInputStream outputStream;
    public ReadThread(ReadData writeData, PipedInputStream outputStream){
        super();
        this.outputStream =outputStream;
        this.writeData=writeData;
    }

    @Override
    public void run() {
        super.run();
        writeData.readMethod(outputStream);
    }
}
